/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * stampa.java
 *
 * Created on 23-jul-2010, 12.29.46
 */

package mymall.views;
import java.awt.*;
/**
 *
 * @author Fabio Franchi
 */
public class stampa extends javax.swing.JDialog {
    Color c = new Color(248,248,248,0);
    /** Creates new form stampa */
    public stampa(java.awt.Frame parent) {
        super(parent, true);
        this.setLocationRelativeTo(parent);
        this.setLocation(parent.getX(), parent.getY()+20);
        
        initComponents();

        dialog.setOpaque(false);
        this.getContentPane().setBackground(c);
        this.setBackground(c);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        dialog = new javax.swing.JPanel();
        image = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setResizable(false);
        setUndecorated(true);
        addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentShown(java.awt.event.ComponentEvent evt) {
                formComponentShown(evt);
            }
        });

        dialog.setBackground(new java.awt.Color(255, 255, 255));
        dialog.setMinimumSize(new java.awt.Dimension(1024, 768));
        dialog.setPreferredSize(new java.awt.Dimension(1024, 768));
        dialog.setLayout(null);

        image.setFont(new java.awt.Font("Calibri", 1, 24)); // NOI18N
        image.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        image.setIcon(new javax.swing.ImageIcon(getClass().getResource("/mymall/img/stampa.png"))); // NOI18N
        image.setName(""); // NOI18N
        dialog.add(image);
        image.setBounds(387, 300, 286, 138);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(dialog, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(dialog, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void formComponentShown(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_formComponentShown

        try{
            Thread.sleep(2500);
            this.dispose();
            }
        catch (InterruptedException ee) {
          Thread.dumpStack();
            }
    }//GEN-LAST:event_formComponentShown

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel dialog;
    private javax.swing.JLabel image;
    // End of variables declaration//GEN-END:variables

}